package com.grj.parkingsystem.service;

import com.grj.parkingsystem.entity.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author ganru
* @description 针对表【t_coupon(优惠券表)】的数据库操作Service
* @createDate 2025-05-16 16:51:44
*/
public interface CouponService extends IService<Coupon> {
    List<Coupon> getAvailableCoupons(String token);
    boolean useCoupon(String token, Long couponId, Long orderId);
    void receiveCoupon(String token, Long couponTemplateId);
}
